import Vue from 'vue'

import moment from "moment"
let that = this


Vue.filter('reservation_status', function (args) {
  let str = '';
  switch (args) {
    case '10':
      str = '草稿'
      break;
    case '20':
      str = '待確認'
      break;
    case '30':
      str = '待分配'
      break;
    case '40':
      str = '已分配'
      break;
    case '50':
      str = '已完成'
      break;
    default:
      str = args
      break;
  }
  return str;
});

Vue.filter('cart_type', function (args) {
  let str = '';
  switch (args) {
    case '10':
      str = '身份證'
      break;
    case '20':
      str = '護照'
      break;
    default:
      str = args
      break;
  }
  return str;
});
Vue.filter('reservation_type', function (args) {
  let str = '';
  switch (args) {
    case '10':
      str = '自主'
      break;
    case '20':
      str = '邀請'
      break;
    default:
      str = ''
      break;
  }
  return str;
});
Vue.filter('quote_status', function (args) {
  let str = '';
  switch (args) {
    case '10':
      str = '草稿'
      break;
    case '20':
      str = '待開票'
      break;
    case '30':
      str = '已開票'
      break;
    case '40':
      str = '已過期'
      break;
    default:
      str = ''
      break;
  }
  return str;
});
// 客戶類型
Vue.filter('quote_status', function (args) {
  let str = '';
  switch (args) {
    case '10':
      str = '個人'
      break;
    case '20':
      str = '公司'
      break;
    case '30':
      str = '已開票'
      break;
    case '40':
      str = '已過期'
      break;
    default:
      str = ''
      break;
  }
  return str;
});




